package com.cnhis.cloudhealth.clinical.hosnurse.hosremind.bo;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cnhis.cloudhealth.clinical.hosnurse.hosremind.dao.HosRemindDao;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.utils.StaticKeys;

@Service
public class HosRemindBo {
  @Resource
  private HosRemindDao hosRemindDao;
  public ModelVo urgentValueRemind(Map map)throws Exception{
	  ModelVo mo = new ModelVo();
		List list =null;
		try {
			list=hosRemindDao.urgentValueRemind(map);
			
		} catch (Exception e) {
			e.printStackTrace();
			mo.setResult(StaticKeys.OH_FALSE);
			return mo;
		}
		mo.setList(list);
		mo.setResult(StaticKeys.OH_SUCCESS);
		mo.setRows(list);
		return mo;
  }
  public ModelVo bioticRemind(Map map)throws Exception{
	  ModelVo mo = new ModelVo();
			List list =null;
			try {
				list=hosRemindDao.bioticRemind(map);
				
			} catch (Exception e) {
				e.printStackTrace();
				mo.setResult(StaticKeys.OH_FALSE);
				return mo;
			}
			mo.setList(list);
			mo.setResult(StaticKeys.OH_SUCCESS);
			mo.setRows(list);
			return mo;
  }
}
